'use strict';

const { min } = require("lodash");

const createOrderVipRule = {
    price: {
        type: 'string',
        min: 0,
    },
    count: {
        type: 'int',
        min: 1,
    },
    total_amount: {
        type: 'number',
        min: 0,
    }
}

const queryRule = {
    out_trade_no: {
        type: 'string'
    }
}

const notifyRule = {
    id: {
        type: "string",
    },
    resource: {
        type: 'object'
    }
}



module.exports = {
    createOrderVipRule,
    notifyRule,
    queryRule,
}